<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page import="java.util.*,
				   com.kylin.common.*,
                   com.kylin.common.util.*,
                   com.kylin.common.paginate.*,
                   com.kylin.module.study.orm.*"%>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>

 <%
     String ext = "unknow";
 %>

<table width="523" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="262" colspan="2" align="center"
			background="/images/dvpic02.gif">
			<table width="90%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>
<%
	String fileType = request.getParameter("fileType");
	String fileUrl = request.getParameter("fileUrl");
	if (fileType != null && fileUrl != null) {
		ext = fileUrl.substring(fileUrl.lastIndexOf(".") + 1,fileUrl.length());
		if ("swf".equalsIgnoreCase(ext)) {
%>
	<br>
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
		   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="650" height="460">
		  <param name="movie" value="/fileOutServlet?fileType=<%=Constants.MEDIA_VOCABUL %>&fileUrl=<%=fileUrl%>">
		  <param name="quality" value="high">
		  <embed src=" " quality="high" 
		  pluginspage="http://www.macromedia.com/go/getflashplayer" 
		  type="application/x-shockwave-flash" width="227" height="187">
		  </embed>
		</object>

<%
		}else {
%>
<!--  <embed src="/fileOutServlet?fileType=<%=Constants.MEDIA_VOCABUL %>&fileUrl=<%=fileUrl%>" autostart="true" loop="false" width="200" height="150" >
embed src="/fileOutServlet?fileType=<%=Constants.MEDIA_VOCABUL %>&fileUrl=<%=fileUrl%>" hidden="false" autostart ="true" 
			  id = "sd1" mastersound -->
<object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' 
      width=330 height=250 codebase=http://activex.microsoft.com/activex/controls
/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
<param name='URL' value='/fileOutServlet?fileType=<%=Constants.MEDIA_VOCABUL %>&fileUrl=<%=fileUrl%>'>
<PARAM NAME='UIMode' VALUE='full'>
<PARAM NAME='AutoStart' VALUE='true'>
<PARAM NAME='Enabled' VALUE='true'>
<PARAM NAME='enableContextMenu' VALUE='false'>
<param name='WindowlessVideo' VALUE='true'></object>
 			  <br>
<%			
		}
	}
%>
						 
					</td>
					
				</tr>
			</table>
		</td>
	</tr>
</table>
				  如果不能正常播放，请将 <%=ext %>文件的打开放式关联到 windows media play
			